package club.samubird.simpledatahandlekit.es.synckit;

import lombok.Data;

/**
 * @author sam
 * @date 2019/10/11 13:51
 * @description 从数据库同步到Es的配置类
 */
@Data
public class SyncDb2EsOperationConfig {

	private String esIndexName;
	private String esIndexType;
	private String esIdFiled;

	private String dbTableName;
	private String sourceTableKey;
	private String lastSyncTimeStr;

	private EsOperationTypeEnum esOptionType;
	private String dbQueryColumnStr;
	private String dbQueryWhereStr;
	private String dbQueryOrderByStr;

	public SyncDb2EsOperationConfig(String esIndexName, String esIndexType, String esIdFiled, String dbTableName, String sourceTableKey, String lastSyncTimeStr) {
		this.esIndexName = esIndexName;
		this.esIndexType = esIndexType;
		this.esIdFiled = esIdFiled;
		this.dbTableName = dbTableName;
		this.sourceTableKey = sourceTableKey;
		this.lastSyncTimeStr = lastSyncTimeStr;
	}
}

